﻿@using GdHotel.Data.Resources
@using GdHotel.Web.Models
@{
    var layoutModel = (UiModel) ViewBag.LayoutModel;
    var hasLayout = layoutModel != null;
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>		
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>@ViewBag.Title</title>
		<meta name="robots" content="index,follow" />
		<meta name="description" content="" />
		<meta name="keywords" content="" />
		<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/main_style.css")" />				
		<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/ie.css")" /><![endif]-->	
        <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
		@*<script type="text/JavaScript" src="js/jquery-1.6.min.js"></script>*@
		<script type="text/javascript" src="@Url.Content("~/Scripts/jcarousellite.min.js")"></script>
		<script type="text/javascript" src="@Url.Content("~/Scripts/gallery.js")"></script>
		<script type="text/javascript" src="@Url.Content("~/Scripts/cufon-yui.js")"></script>		 
		<script type="text/javascript" src="@Url.Content("~/Scripts/Corbel_400-Corbel_700-Corbel_italic_400-Corbel_italic_700.font.js")"></script>
        @if (hasLayout && !layoutModel.Language.Asian)
        {
            <script type="text/javascript">
                Cufon.replace("h1");
                Cufon.replace("h2");
                Cufon.replace("h3");
                Cufon.replace(".form_reserve h2", { color: '#fff' });
                Cufon.replace(".corbel");
                Cufon.replace("ul.langs li a.corb");
                Cufon.replace("ul.langs li a.corb.active", { color: '#f09c12' });
                Cufon.replace("ul.nav li a");
            </script>
        }
        <script type="text/javascript">
            jQuery(function () {
                jQuery(".gallery_pic").jCarouselLite({
                    btnNext: ".next",
                    btnPrev: ".prev",
                    visible: 1,
                    circular: true,
                    auto: 6000,
                    speed: 500,
                    beforeStart: function () {
                        $('.marks span').addClass('active');
                    },
                    afterEnd: function () {
                        $('.marks span').removeClass('active');
                    }

                });
            });	
        </script>
        @RenderSection("head", false)
        <!--[if lt IE 10]>
		        <script type="text/javascript" src="@Url.Content("~/Scripts/PIE.js")"></script>
        <![endif]-->		
	</head>
	<body class="main">	
		<!--all-->
		<div class="all">
			<!--header_block-->
			<div class="header_block">
				<!--header-->
				<div id="header">
					<!--wrap-->
					<div class="wrap">
						<div class="logo_block">
							<a href="@Url.Action("Index", "Home")" class="logo" title="@Localization.HotelName">@Localization.HotelName</a>
						</div>
						
                        @if (layoutModel != null)
                        {
                            <text>@Html.Partial("_TopMenuAdditional", layoutModel.AdditionalMenuItems)</text>
                        }
                        
                        @if (hasLayout && layoutModel.Note != null)
                        {
                            @Html.Partial("_Contacts", layoutModel)
                        }

						<!--reserve_block-->
						<div class="reserve_block">							
							<p class="slogan corbel">
                                @if (hasLayout)
                                {
                                    <text>@Html.Raw(layoutModel.Note.Slogan)</text>
                                }
                            </p>							
							<p class="corbel">
                                @if (hasLayout)
                                {
                                    <text>@Html.Raw(layoutModel.Note.WeWillContact)</text>
                                }
                            </p>							
                            @if (hasLayout)
                            {
                                <div class="reserve_btn_wrap">
                                    <div class="reserve_btn @layoutModel.Language.ShortName"><a href="@Url.Action("ReserveRoom", "Reservation")"></a></div>
                                    <img src="@Url.Content("~/Content/Images/bell.png")" class="bell"  width="70px" height="81px" alt="" />
                                </div>
                            }
						</div>
						<!--/reserve_block-->
					</div>
					<!--/wrap-->
				</div>
				<!--/header-->
			</div>
			<!--/header_block-->

            @if (layoutModel != null)
            {
                <text>@Html.Partial("_TopMenuMain", layoutModel.MainMenuItems)</text>
            }

			<!--gallery_block-->
			<div class="gallery_block">				
                @RenderSection("gallery", false)				
			</div>
			<!--/gallery_block-->	
			<!--content_block-->
			<div class="content_block">				
                @RenderBody()
			</div>
			
            @RenderSection("bottomContent", false)

			<div class="hfooter"></div>	
			<!--over_window-->
			<div class="over_window">
				<div class="pop">
					<div class="align_center_to_left">
						<div class="align_center_to_right">								
							<a href="#" class="close"></a>							
						</div>
					</div>
				</div>
			</div>
			<!--/over_window-->
		</div>
		<!--/all-->
		<!--footer-->
		<div id="footer">
			<!--wrap-->		
			<div class="wrap">
                
                @if (layoutModel != null)
                {
                    <text>@Html.Partial("_BottomMenuMain", layoutModel.MainMenuItems)</text>
                    
                    <text>@Html.Partial("_BottomMenuAdditional", layoutModel.AdditionalMenuItems)</text>
                }

				<div class="footerbot">
					<p>©2005&#150;@DateTime.Now.Year @(hasLayout ? layoutModel.Note.Copyright : "")</p>
				</div>
			</div>
			<!--/wrap-->		
		</div>
		<!--/footer-->
    <script type="text/javascript">

        (function ($) {
            if ($.browser.msie) {
                $('.shadow').each(function () {
                    PIE.attach(this);
                });
            }
        } (jQuery));
		
    </script>
	</body>	
</html>